package demo1;


public class Test {
    public static void drawMap(Shape shape){
        shape.draw();//多态绑定
    }

    public static void main(String[] args) {
        /*抽象类不能进行实例化，因为抽象类不能描述一个具体的对象
        Shape shape = new Rect();*/
        drawMap(new Rect());
        drawMap(new Cycle());
    }


}
